<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<Uber.Core.IPageable<Uber.Core.Model.Scam>>" %>

<%@ Import Namespace="Uber.WebUI" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Index</h2>
    
    <table>
        <%
            foreach (var item in Model.Page)
            {
%>
        <tr>            
            <td>
                <%=item.Ip%>
            </td>
            <td>
                <%=item.Content%>
            </td>
            <td>
            <%
                using(Html.BeginForm("Good")){%>
                <input type="submit" value="Good" />
                <%
            }%>
            </td>
            <td>
            <%
                using (Html.BeginForm("NotGood"))
                {%>
                <input type="hidden" name="ip" value="<%=item.Ip%>" />
                <input type="submit" value="Not Good" />
                <%
                }%>
            </td>
        </tr>
        <%
            }%>
    </table>  
    
    <%=Html.Pagination() %>
</asp:Content>
